<script>
	export default {
		globalData: {
			CustomBar: 0,
			StatusBar: 0,
			baseUrl: "http://192.168.32.41:8089"
		},
		onLaunch: function() {
			console.log('App Launch')
			const e = uni.getSystemInfoSync();
			console.log("手机信息", e)
			// #ifndef MP
			this.globalData.StatusBar = e.statusBarHeight;
			if (e.platform == 'android') {
				this.globalData.CustomBar = e.statusBarHeight + 50;
			} else {
				this.globalData.CustomBar = e.statusBarHeight + 45;
			};
			// #endif
			// #ifdef MP-WEIXIN
			this.globalData.StatusBar = e.statusBarHeight;
			let custom = wx.getMenuButtonBoundingClientRect();
			this.globalData.Custom = custom;
			this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
			// #endif		
			// #ifdef MP-ALIPAY
			this.globalData.StatusBar = e.statusBarHeight;
			this.globalData.CustomBar = e.statusBarHeight + e.titleBarHeight;
			// #endif

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";

	/* 你的项目css */
</style>